<template>
    <el-card class="card" shadow="hover">
        <div class="card-content">
            <div class="title">{{title}}</div>
            <div class="content">
                <span>{{content}}</span>
            </div>
        </div>
        <div class="card-decoration"></div>
    </el-card>
</template>

<script>
export default {
    name: 'TextCard',
    props: {
        title:String,
        content:String,
    }
}
</script>

<style scoped>
.card {
    margin: 0 0 15px 0;
    border-radius: 12px;
    padding: 0px;
    width: 100%;
    min-height: 120px;
    border-color: transparent;
    flex: 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.card-content {
    position: relative;
    z-index: 2;
    padding: 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 1;
}

.title {
    font-size: 16px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    letter-spacing: 0.5px;
}

.content {
    font-size: 28px;
    font-weight: 600;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.card:nth-child(1) {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

@media (max-width: 707px) {
    .card {
        width: 100%;
        margin: 0 0 10px 0;
        min-height: 100px;
    }
    
    .title {
        font-size: 15px;
        margin-bottom: 12px;
    }
    
    .content {
        font-size: 24px;
    }
}
</style>